﻿
@using Abp.Extensions
@using Abp.Application.Services.Dto
@using KDS.Mes.Web.Models.Common.Modals
@using KDS.Mes.Web.Models.SeatInfos

@model CreateOrEditSeatInfoModalViewModel

@* 初始化头部 *@
@Html.Partial("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel(Model.IsEditMode ? (L("EditSeatInfo") + ": " + Model.SeatInfo.AlcCodeId) : L("CreateSeatInfo")))


<!--html代码区域-->
<div class="modal-body">
    <form name="seatInfoInformationsForm" role="form" novalidate class="form-validation">
        <input type="hidden" name="Id" value="@Model.SeatInfo.Id" />
        <div>
            <div hidden="hidden">
                @if (Model.IsEditMode)
            {
                    <input type="hidden" name="Id" value="@Model.SeatInfo.Id" />
                }
            </div>

            <div class="row">
                <div class="col-sm-6">
                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("AlcCodeId")</label>
                        @Html.DropDownList("AlcCodeId", Model.AlcCodes.Select(a => a.ToSelectListItem()), new
                   {
                       @class = "form-control selectpicker",
                       data_live_search = "true",
                       title = L("PlaaseSelect"),
                       id = "alcCodeIdEdit"
                   })
                    </div>

                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("ColorId")</label>
                        @Html.DropDownList("ColorId", Model.Colors.Select(a => a.ToSelectListItem()), new
                   {
                       @class = "form-control selectpicker",
                       data_live_search = "true",
                       title = L("PlaaseSelect"),
                       id = "colorIdEdit"
                   })
                    </div>
                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("Slide")</label>
                        @Html.EnumDropDownListFor(model => model.Slide, htmlAttributes: new { @class = "form-control" })

                        @*@Html.EnumDropDownListFor(model => model.SlideType, htmlAttributes: new { @class = "form-control" })*@
                    </div>
                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("LumbarSupport")</label>
                       @Html.EnumDropDownListFor(model => model.LumbarSupport, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("Ventlation")</label>
                        @Html.EnumDropDownListFor(model => model.Ventlation, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("BackPocket")</label>
                       @Html.EnumDropDownListFor(model => model.BackPocket, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="alcCodeIdEdit">@L("IMS")</label>
                        @Html.EnumDropDownListFor(model => model.IMS, htmlAttributes: new { @class = "form-control" })
                    </div>
                   
                </div>
                <div class="col-sm-6">

                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("SeatPositionId")</label>
                        @Html.DropDownList("SeatPositionId", Model.SeatPositions.Select(a => a.ToSelectListItem()), new
                   {
                       @class = "form-control selectpicker",
                       data_live_search = "true",
                       title = L("PlaaseSelect"),
                       id = "seatPositionIdEdit"
                   })
                    </div>
                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("MaterialId")</label>
                        @Html.DropDownList("MaterialId", Model.Materials.Select(a => a.ToSelectListItem()), new
                   {
                       @class = "form-control selectpicker",
                       data_live_search = "true",
                       title = L("PlaaseSelect"),
                       id = "materialIdEdit"
                   })
                    </div>
                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("HGIT")</label>
                      @Html.EnumDropDownListFor(model => model.HGIT, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("Warmer")</label>
                        @Html.EnumDropDownListFor(model => model.Warmer, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("SAB")</label>
                        @Html.EnumDropDownListFor(model => model.SAB, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("SBR")</label>
                        @Html.EnumDropDownListFor(model => model.SBR, htmlAttributes: new { @class = "form-control" })
                    </div>
                    <div class="form-group ">
                        <label for="seatPositionIdEdit">@L("OneTouch")</label>
                        @Html.EnumDropDownListFor(model => model.OneTouch, htmlAttributes: new { @class = "form-control" })
                    </div>

                  
                </div>
            </div>
        </div>
    </form>
</div>
@Html.Partial("~/Views/Common/Modals/_ModalFooterWithSaveAndCancel.cshtml")
 
